﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SQLServerHealthCheck.SQLServer;

namespace SQLServerHealthCheck.PL
{
    public partial class DatabaseCheckResults : Form
    {
        HealthCheckControlPanel hccp;
        public DatabaseCheckResults(HealthCheckControlPanel controlPanel)
        {
            hccp = controlPanel;
            InitializeComponent();
        }

        private void DatabaseCheckResults_Load(object sender, EventArgs e)
        {
            try
            {
                this.TableAdapterDatabaseandFiles.Fill(this.DataSetDatabaseandFiles.DataTableDatabaseandFiles);
                rvDatabaseandFiles.LocalReport.ReportPath = System.Windows.Forms.Application.StartupPath + @"\Reports\DatabaseandFileDetails.rdlc";
                this.WindowState = FormWindowState.Maximized;
                this.rvDatabaseandFiles.RefreshReport();
            }

            catch (Exception ex)
            {

                //InstallationCheck.WriteExceptioninFile("Form:DatabaseCheckResults  Method: DatabaseCheckResults_Load " + ex.Message.ToString());

                MessageBox.Show(ex.Message, "HealthCheck", MessageBoxButtons.OK, MessageBoxIcon.Error);         

            }
        }

        private void rvDatabaseandFiles_Load(object sender, EventArgs e)
        {

        }
    }
}
